import Vue from 'vue'
import App from './App.vue'
import router from './router'
import store from './store'

import ElementUI from 'element-ui';
import 'element-ui/lib/theme-chalk/index.css';
import './css/reset.css'

import axios from 'axios'
// axios.defaults.baseURL='http://127.0.0.1:8000/'
axios.defaults.baseURL='http://8.130.48.144:80/'

Vue.prototype.$http=axios
import './assets/icon/iconfont.css'
import './assets/icon/iconfont.js'

import UrlEncode from './assets/js/UrlEncode.js' 

Vue.prototype.$UrlEncode = UrlEncode;

Vue.use(ElementUI);
Vue.config.productionTip = false

import 'default-passive-events'

import VueAMap from 'vue-amap';
Vue.use(VueAMap);

// 初始化vue-amap
VueAMap.initAMapApiLoader({
  // 高德的key
  key: '8c7cb38116d793734eaab21a7caf3e4d',
  // 插件集合
  plugin: ['AMap.Autocomplete', 'AMap.PlaceSearch', 'AMap.Scale', 'AMap.OverView', 'AMap.ToolBar', 'AMap.MapType', 'AMap.PolyEditor', 'AMap.CircleEditor'],
  // 高德 sdk 版本，默认为 1.4.4
  v: '1.4.4'
});

new Vue({
    el:'#app',
    components:{App},
    router,
    store,
    render: h => h(App),
}).$mount('#app')

